package com.mdsoft.service.impl;

import java.util.List;

import com.mdsoft.dao.UserDao;
import com.mdsoft.po.User;
import com.mdsoft.service.UserService;

public class UserServiceImpl implements UserService {

	private UserDao userDao;
	
	@Override
	public User login(String username, String password) {
		
		return userDao.get(username, password);
	}

	@Override
	public List<User> getAll() {
		return userDao.getAll();
	}

	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public User get(int id) {
		return userDao.get(id);
	}

	
	
	
}
